;
;	startup.s   -   first startup file for bootloader 
;
;	Author: 	li ming <admin@lumit.org>
;	Date:		2005-5-24
;	Copyleft:	http://www.lumit.org
;

	AREA	SelfBoot,	CODE,	READONLY
	ENTRY

	import main
;**************************************************************************************************

	; Set up SVC stack
	mov	r0, #0xd3                ; make svc mode with all irqs disabled
	msr	cpsr_cxsf, r0		 
	ldr sp, =0x32080000

F_Bit		EQU 	0x40
Mode_Svc	EQU	0x13
			
	MOV	r0, #Mode_Svc:OR:F_Bit
	MSR	cpsr_c, r0
		
	b	main

;**************************************************************************************************
	END
	